// 设置集合（表）结构
// 1.引入mongoose
// 2.引入连接数据库

let mongoose = require('mongoose')
let userSchema = new mongoose.Schema({
    title: String,
    fclass: String,
    pic:String,
    address: String,
    content: String,
    is_status: String,
    new_time: String,
    data_time:String,
    consultID: String
    
})
// 通过mongoose添加表结构时默认是复数会默认给你添加一个s
// 如果不想要s 需要在设置第三个参数相当于重命名
let User = mongoose.model('consultlists',userSchema)
module.exports = User